# -*- coding: utf-8 -*-
# @Time : 2022/1/17 9:33
# @Author : Limusen
# @File : demo_look_11


import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from appium.webdriver.webdriver import By

des = {
    "platformName": "Android",
    "platformVersion": "9",
    "deviceName": "windwos虚拟机",
    "appPackage": "com.android.settings",
    "appActivity": "com.android.settings.Settings",
    "udid": "192.168.0.101:5555",
    "noReset": "True"
}

driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', des)

web_element_e1 = driver.find_element(By.XPATH, '//android.widget.TextView[@text="帐号"]')

web_element_e2 = driver.find_element(By.XPATH, '//android.widget.TextView[@text="存储"]')

driver.scroll(web_element_e1,web_element_e2)



